package com.ttg.web.dao.Impl;

import com.ttg.common.entities.BasePage;
import com.ttg.model.dto.IndustryPageDTO;
import com.ttg.model.pojo.IndustryInfo;
import com.ttg.model.mapper.IndustryInfoMapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ttg.model.vo.IndustryInfoVO;
import com.ttg.model.vo.IndustryTwoLevelVO;
import com.ttg.web.dao.IndustryInfoDao;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 行业信息(TblIndustryInfo) daoImpl
 *
 * @author chenyou
 * @datetime 2025-11-06 17:08:01
 */
@Service
public class IndustryInfoDaoImpl extends ServiceImpl<IndustryInfoMapper, IndustryInfo> implements IndustryInfoDao {


    @Override
    public List<IndustryInfo> fisrtLevelList() {
        return baseMapper.fisrtLevelList();
    }

    @Override
    public List<IndustryInfo> twoLevelList(String clsId1) {
        return baseMapper.twoLevelList(clsId1);
    }

    @Override
    public List<IndustryTwoLevelVO> allTwoLevelList() {
        return baseMapper.allTwoLevelList();
    }

    @Override
    public BasePage<IndustryInfoVO> page(IndustryPageDTO reqDto) {
        return baseMapper.page(reqDto.parse(),reqDto);
    }
}

